{% load static %}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>{% block title %}ZZN'S WEBSITE{% endblock title %}</title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.1.0/css/bootstrap.min.css">
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="{% static 'student/css/index.css' %}">
    <link rel="stylesheet" href="{% static 'student/css/login.css' %}">
    <link rel="shortcut icon" href="{% static 'student/images/ico.ico' %}">

</head>
<body>
<nav class="navbar navbar-expand-md bg-dark navbar-dark">
    <span class="navbar-brand font-weight-bold text-light">
        ZZN的个人网站
    </span>

    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>

    <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav mr-auto">
            <li class="navbar-item">
                <a href="{% url 'student:Index' %}" class="text-light nav-link">
                    首页
                </a>
            </li>
            <li class="nav-item">
                <a href="{% url 'student:Score' %}" class="text-light nav-link">
                    学生打分
                </a>
            </li>
            <li class="nav-item">
                <a href="{% url 'student:Manager' %}" class="text-light nav-link">
                    学生管理
                </a>
            </li>
            <li class="nav-item">
                <a href="{% url 'student:About' %}" class="text-light nav-link">
                    关于
                </a>
            </li>
        </ul>
        <ul class="navbar-nav navbar-right">
            {% block search %}{% endblock search %}
            {% block user %}{% endblock user %}

            {% if user.is_authenticated %}
            <li class="nav-item">
                <span class="text-light nav-link">Hello! {{ user.username }}</span>
            </li>
            <li class="nav-item">
                <a href="{% url 'student:Logout' %}" class="text-light nav-link">Logout</a>
            </li>
            {% else %}
            <li class="nav-item">
                <a href="{% url 'student:Login' %}" class="text-light nav-link">Login</a>
            </li>
            {% endif %}


        </ul>
    </div>
</nav>

{% block main %}{% endblock main %}


<footer class="footer navbar-fixed-bottom bg-light">
    <div class="container">
        <span class="text-muted text-center">
            <p class="footerp">Powerd By Bootstrap&Django</p>
        </span>
    </div>
</footer>

</body>

</html>